package org.linlinjava.litemall.db.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wj
 * @date 2021/12/13 14:01
 * 获取当前项目运行环境
 */
@Component
@ConfigurationProperties("litemall.server")
public class EnvironmentConstant {

    /**
     * 获取当前项目环境 线上 or 测试 or线下
     */
    private String env;

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public EnvironmentConstant() {
    }

    public EnvironmentConstant(String env) {
        this.env = env;
    }
}
